home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
028a
/
zipdate.zip
/
ZIPDATE.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-09-09
|
1KB
|
50 lines
Program ZipDate;
Uses Dos, MyProcs, Zipper;
var
DirInfo : SearchRec;
Updated : boolean;
Total, UpTotal : integer;
Path : PathStr;
Dir : DirStr;
Name : NameStr;
Ext : ExtStr;
begin
if ParamCount < 1 then
begin
writeln('Syntax: ZipDate [filespec]');
halt;
end;
Path := ParamStr(1);
FSplit(Path,Dir,Name,Ext);
if upString(Ext) = '.ZIP' then
begin
Total := 0; UpTotal := 0; Updated := false;
writeln('ZipDate v1.0 - Chris Hall - PC Network (505) 821-5341');
writeln;
writeln('Updating ZipFile Dates to the latest file date. Please Wait!');
writeln;
FindFirst(Path,AnyFile,DirInfo);
while DosError = 0 do
begin
GetLatestDate(DirInfo,Updated);
inc(Total);
if Updated then
begin
inc(UpTotal);
Updated := false;
end;
FindNext(DirInfo);
end;
writeln;
writeln('Complete!');
writeln;
writeln(Total,' files Processed. ',Uptotal,' files Updated');
end
else
writeln('ZipDate can only process ZIP files!');
end.